; Kirara

; Constants -------------------------

[Constants]
global $active = 0
global $creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

; Overrides -------------------------

[TextureOverrideKiraraPosition]
hash = b57d7fe2
vb0 = ResourceKiraraPosition
$active = 1

[TextureOverrideKiraraBlend]
hash = 01d54938
vb1 = ResourceKiraraBlend
handling = skip
draw = 57885,0 

[TextureOverrideKiraraTexcoord]
hash = 33b3d6e5
vb1 = ResourceKiraraTexcoord

[TextureOverrideKiraraVertexLimitRaise]
hash = e656b9fd

[TextureOverrideKiraraIB]
hash = f6e9af7d
;hash = ce3dc5a2
handling = skip
drawindexed = auto

[TextureOverrideKiraraHead]
hash = f6e9af7d
;hash = ce3dc5a2
match_first_index = 0
ib = ResourceKiraraHeadIB
ps-t0 = ResourceKiraraHeadNormalMap
ps-t1 = ResourceKiraraHeadDiffuse
ps-t2 = ResourceKiraraHeadLightMap

[TextureOverrideKiraraBody]
hash = f6e9af7d
;hash = ce3dc5a2
match_first_index = 37128
ib = ResourceKiraraBodyIB
ps-t0 = ResourceKiraraBodyNormalMap
ps-t1 = ResourceKiraraBodyDiffuse
ps-t2 = ResourceKiraraBodyLightMap

[TextureOverrideKiraraDress]
hash = f6e9af7d
;hash = ce3dc5a2
match_first_index = 75234
ib = ResourceKiraraDressIB
ps-t0 = ResourceKiraraDressNormalMap
ps-t1 = ResourceKiraraDressDiffuse
ps-t2 = ResourceKiraraDressLightMap

[TextureOverrideKiraraFaceHeadNormalMap]
hash = 6eb20522
ps-t0 = ResourceKiraraFaceHeadNormalMap


; CommandList -----------------------

[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
	pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
	pre run = CustomShader\ShaderFixes\help.ini\FormatText
	pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
	$creditinfo = 1
endif

; Resources -------------------------

[ResourceKiraraPosition]
type = Buffer
stride = 40
filename = KiraraPosition.buf

[ResourceKiraraBlend]
type = Buffer
stride = 32
filename = KiraraBlend.buf

[ResourceKiraraTexcoord]
type = Buffer
stride = 20
filename = KiraraTexcoord.buf

[ResourceKiraraHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = KiraraHead.ib

[ResourceKiraraBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = KiraraBody.ib

[ResourceKiraraDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = KiraraDress.ib

[ResourceKiraraHeadNormalMap]
filename = KiraraHeadNormalMap.dds

[ResourceKiraraHeadDiffuse]
filename = KiraraHeadDiffuse.dds

[ResourceKiraraHeadLightMap]
filename = KiraraHeadLightMap.dds

[ResourceKiraraBodyNormalMap]
filename = KiraraBodyNormalMap.dds

[ResourceKiraraBodyDiffuse]
filename = KiraraBodyDiffuse.dds

[ResourceKiraraBodyLightMap]
filename = KiraraBodyLightMap.dds

[ResourceKiraraDressNormalMap]
filename = KiraraDressNormalMap.dds

[ResourceKiraraDressDiffuse]
filename = KiraraDressDiffuse.dds

[ResourceKiraraDressLightMap]
filename = KiraraDressLightMap.dds

[ResourceKiraraFaceHeadNormalMap]
filename = KiraraFaceHeadNormalMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Lewd Lad & Mist & Shinya: Kirara Maid Mod"


; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord

; 4.1 Character Fix 
[TextureOverride41FixVertexLimitRaise0]
hash = 6fb396da
match_priority = 1
